<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@page import="dyyx.dto.*"%>
<%@page import="dyyx.util.*"%>
<%@page import="java.util.*"%>

<%
WebResult webResult = new WebResult();
DubboViewWebUtil.listAllService(request, webResult);
List<NodeData> list = webResult.list;
if(list==null){
	list = new ArrayList<NodeData>();
}


%>


<style>

  table{
            border-collapse: collapse;
            border: none;
            width: 100%;
        }
        td{
            border: solid gray 1px;
            vertical-align: top;
            padding:7px;
        }

        .title td{
            height:39px;
            text-align:left;
            font-weight:bold;
            background-color:silver;
             vertical-align: middle;

        }
</style>






<hr>

<%=new Date() %> 
<hr>

<%=webResult.msg %>  <br>
zookeeper:<%=ClientUtil.getZkInfoForDubbo() %>

<hr>

<table>
<tr class='title'>
<td>service</td>
<td>create</td>
<td>modify</td>

</tr>

<%for(NodeData item:list){ 
String service = DubboUtil.getService(item.path);
%>
<tr>
<td><a href="service.jsp?service=<%=service %>"><%=service %></a></td>
<td><%=CommUtil.getDateString(new Date(item.stat.getCtime())) %></td>
<td><%=CommUtil.getDateString(new Date(item.stat.getMtime())) %></td>
</tr>

<%} %>
</table>
